from selenium.webdriver.common.by import By
class UserRightManageLocators:

    # 查询输入框
    query_sub = (By.CSS_SELECTOR, 'input[placeholder="请输入用户名/姓名/身份证号查询"]')

    # 列表第一条数据-分配角色
    assign_roles = (By.XPATH, '//div[@class="el-table__fixed-right"]//div[text()="testuser1"]/../..//span[text()="分配角色"]')

    # 分配角色-勾选新添加的角色
    check_teacher = (By.XPATH, '//div[@aria-label="分配角色"]//span[contains(text(), "测试角色1")]')

    # 分配角色-确定按钮
    sure = (By.XPATH, '//div[@aria-label="分配角色"]/div[3]/span/button[2]/span')

    # 列表第一条角色标签定位取值
    role_name = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]//div[text()="testuser1"]/../../td[7]/div')

    # 我的工作台
    worktable = (By.XPATH, '//font[text()="我的工作台"]')

    # 教职工信息管理应用
    teacher_info_app = (By.XPATH, '//div[text()="教职工信息管理系统"]')

    # 教职工信息管理菜单
    teacher_info_menu = (By.XPATH, '//span[text()=" 入职管理"]')

    # 查询输入框
    input_query = (By.XPATH, '//input[@placeholder="姓名/手机号/身份证号/邮箱/教籍号"]')

    # 批量删除按钮
    batch_deletion = (By.XPATH, '//div[@class="right xs-mini"]/button[4]/span')

    # 教师列表第一条删除按钮
    delete_teacher = (By.XPATH, '//div[@class="el-table__fixed-body-wrapper"]/table/tbody/tr[1]/td[12]/div/button[4]/span')

    # 继续删除
    continue_delete = (By.XPATH, '//span[text()="继续删除"]')

    # 勾选我已知晓
    knowed = (By.XPATH, '//div[@aria-label="删除"]/div[2]/div[2]/div[2]/label/span[2]')

    # 批量删除的我已知晓
    knowed1 = (By.XPATH, '//div[@aria-label="删除"]/div[2]/div[3]/div[2]/label/span/span')

    # 删除按钮
    delete = (By.XPATH, '//div[@class="dialog-footer"]/button[2]/span')

    # 批量分配角色
    batch_assign_roles = (By.XPATH, '//span[text()="批量分配角色"]')

    # 错误提示
    error_tips = (By.XPATH, '//p[@class="el-message__content"]')

    # 全部勾选
    all_check = (By.XPATH, '//thead[@class="has-gutter"]/tr/th[1]/div/label/span/span')

    # 勾选教职工信息管理列表的test_name1
    first_check = (By.XPATH, '//div[contains(@class,  "is-scrolling-left")]//a[contains(text(), "test_name1")]/../../../td[1]/div/label/span/span')

    # 勾选教职工信息管理列表的test_name2
    second_check = (By.XPATH, '//div[contains(@class,  "is-scrolling-left")]//a[contains(text(), "test_name2")]/../../../td[1]/div/label/span/span')

    # 勾选教职工信息管理列表的test_name3
    third_check = (By.XPATH, '//div[contains(@class,  "is-scrolling-left")]//a[contains(text(), "test_name3")]/../../../td[1]/div/label/span/span')

    # 勾选教职工信息管理列表的test_name4
    fourth_check = (By.XPATH, '//div[contains(@class,  "is-scrolling-left")]//a[contains(text(), "test_name4")]/../../../td[1]/div/label/span/span')

    # 勾选用户权限管理列表的test_user1
    user1 = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]//div[text()="testuser1"]/../..//span[@class="el-checkbox__inner"]')
    # 勾选用户权限管理列表的test_user2
    user2 = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]//div[text()="testuser2"]/../..//span[@class="el-checkbox__inner"]')
    # 勾选用户权限管理列表的test_user3
    user3 = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]//div[text()="testuser3"]/../..//span[@class="el-checkbox__inner"]')
    # 勾选用户权限管理列表的test_user4
    user4 = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]//div[text()="testuser4"]/../..//span[@class="el-checkbox__inner"]')

    # 角色管理-测试角色1的删除按钮
    delete_sub2 = (By.XPATH, '//div[@class="el-table__fixed-body-wrapper"]//div[text()="测试角色1"]/../..//span[text()="删除"]')
    # 系统提示-确认删除
    sure_delete = (By.XPATH, '//div[@aria-label="系统提示"]/div/div[3]/button[2]/span')

    # 使用新角色
    use_new_roles = (By.XPATH, '//span[text()="使用新角色"]')

    # 新增角色
    add_new_roles = (By.XPATH, '//span[text()="新增角色"]')

    # 系统提示信息
    system_tip = (By.XPATH, '//div[@class="el-message el-message--success"]/p')